#Verkefni13
f = open("texti.txt", "r")
linur = [line.split(' ') for line in f.readlines()]
for x in range(len(linur)):
	print(len(linur[x]))